home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / macintosh-c / macc-carbon-demos-nonbinhex.sit / macc-carbon-demos-nonbinhex / chap18-demo-classic events / SynchroniseFiles.c.rsrc / TEXT_8715.txt < prev   
Text File  |  2001-05-30  |  1KB  |  31 lines

  1. // *******************************************************************************************
  2. // Files.c                                                                             CARBON
  3. // *******************************************************************************************
  4.  
  5. // ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ includes
  6.  
  7. #include "Files.h"
  8.  
  9. // ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ global variables
  10.  
  11. extern SInt16    gCurrentNumberOfWindows;
  12.  
  13. // ************************************************************************ doSynchroniseFiles
  14.  
  15. void  doSynchroniseFiles(void)
  16. {
  17.     UInt32                            currentTicks;
  18.     WindowRef                        windowRef;
  19.     SInt16                            trashVRefNum;
  20.     SInt32                            trashDirID;
  21.     static UInt32                nextSynchTicks = 0;
  22.     docStructureHandle    docStrucHdl;
  23.     Boolean                            aliasChanged;
  24.     AliasHandle                    aliasHdl;
  25.     FSSpec                            newFSSpec;
  26.     OSErr                                osError;
  27.  
  28.     currentTicks = TickCount();
  29.     windowRef         = FrontNonFloatingWindow();
  30.  
  31.     i